﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Bootstrap5.Abstractions;

using Microsoft.AspNetCore.Components;

namespace Bootstrap5;

[HtmlTag("li")]
[CssClass("breadcrumb-item")]
public class BreadcrumbItem:BootstrapChildContentComponentBase
{
    [CascadingParameter] Breadcrumb Parent { get; set; }
    [Parameter] [CssClass("active")] public bool Active { get; set; }

    protected override void OnInitialized()
    {
        if(Parent is null)
        {
            throw new CascadingValueNullException(nameof(BreadcrumbItem), nameof(BreadcrumbItem));
        }
    }
}
